﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DomainModel;
using Utils;
using WebUI.Utils;

namespace WebUI.Models
{
    public class JobsViewModel: BaseViewModel
    {
        public JobsViewModel(string tag)
            : base(new { Tag = tag})
        { }

        public List<CoJob> CoJobList { get; set; }

        public string Tag { get; set; }

        protected override void SetVarsWhichDependOnDynamicParams(dynamic dynParams)
        {
            Tag = dynParams.Tag;

            CoJobList = DataUtils.GetSearchJobs(Tag);
        }
        
    }
}